package com.caocaog.market.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caocaog.market.entity.AreaCity;
import com.caocaog.market.entity.AreaDistrict;
import com.caocaog.market.entity.AreaProvince;
import com.caocaog.market.entity.ShopBasic;
import com.caocaog.market.vo.GoodsInfoVo;
import com.caocaog.market.vo.ShopVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 店铺信息表
 *
 * @author jeecg-boot
 * @date 2021-11-19
 */
public interface ShopBasicMapper extends BaseMapper<ShopBasic> {

    List<AreaProvince> selectAreaProvinceList();
    List<AreaCity> selectAreaCityList(@Param("id") Integer id);
    List<AreaDistrict> selectAreaDistrictList(@Param("id") Integer id);
    AreaDistrict selectAreaDistrictOne(@Param("id")Integer id);

    List<ShopBasic> DayRecommend();
    List<ShopVo> selectShopListAndTakeOutInfo(@Param("list") List<String> ids,
                                              @Param("recommend")Integer recommend);
    List<ShopVo> selectShopListAndTakeOutInfoByRecommendForSDX(@Param("shopBasic")ShopBasic shopBasic);
    List<ShopVo> selectShopListAndTakeOutInfoByRecommend(@Param("siteId")String siteId, @Param("shopBasic")ShopBasic shopBasic);
    List<GoodsInfoVo> selectGoodsVoByShopId(@Param("id")String id);

    List<ShopVo> selectServeShopListAndTakeOutInfo(@Param("list") List<String> ids,
                                              @Param("recommend")Integer recommend);
}
